home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _4CCE1CB9AF1C4845B2EEA837E8EB7266 < prev    next >
Encoding:
Text File  |  2000-03-27  |  643 b   |  32 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9. local entity lhostage // the guy who will get pistol whipped
  10. local entity lbadguy1 // the guy who does the pistol whip
  11. local int health
  12.  
  13.  
  14. lhostage = find entity with targetname "lhostage"
  15. lbadguy1 = find entity with targetname "lbadguy1"
  16. health = lbadguy1.health
  17.  
  18.  
  19.  
  20. if health > 0
  21.  
  22.  
  23.  
  24. animate entity lhostage performing action  CCH_XONKNEES_N_N_N
  25. play sound "speech/tsr1/npc/eb9-6.adp" for entity lhostage at volume 0.9
  26. animate entity lhostage performing action  CCH_SONKNEES_2FRNT_N_N
  27.  
  28. endif
  29.  
  30. animate entity lhostage performing action SCRIPT_RELEASE
  31.  
  32.